<!DOCTYPE html>

<html class="no-js">

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <title></title>
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script src="https://cdn.staticfile.org/axios/0.19.0-beta.1/axios.js"></script>
  <script src="../../cdn/vue/vue.js"></script>
  <link rel="stylesheet" href="../../cdn/element-ui/theme-chalk/index.css" />
  <script src="../../cdn/element-ui/index.js"></script>

  <link rel="stylesheet" href="../../../lib/index.css" />
  <script src="../../../lib/avue.js"></script>
</head>

<body>
  <div id="app">
    <avue-form :option="option" v-model="obj"></avue-form>
  </div>
</body>
<script>
  new Vue({
    el: '#app',
    data() {
      return {
        obj: {},
        data: [],
        option: {
          column: [{
            label: '省份',
            prop: 'province',
            change: (scope) => {
              console.log('值改变', scope)
            },
            click: (scope) => {
              console.log('点击事件', scope)
            },
            focus: (scope) => {
              console.log('获取焦点', scope)
            },
            blur: (scope) => {
              console.log('失去焦点', scope)
            },
            enter: (scope) => {
              console.log('回车事件', scope)
            }
          }]
        }
      }
    }
  })
</script>

</html>